import { ShopTask } from './shop-task.entity'
import { Shop } from './shop.entity'
import { Member } from './../member'
import { ShopGood } from './shop-good.entity'
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
import { ShopOrder } from './shop-order.entity'
import { ShopWork } from './shop-work.entity'

// 购物车
@Entity()
export class ShopCart {
  @PrimaryGeneratedColumn()
  id: number

  price: number

  pay_fee: number

  discount_fee: number

  @Column({
    comment: '类型'
  })
  type: string

  task: ShopTask

  work: ShopWork

  shop: Shop

  member: Member

  goods: ShopGood[]

  order: ShopOrder
}
